package com.thinvent.nj.ais.mapper;

import com.thinvent.nj.mybatis.mapper.CURDMapper;
import com.thinvent.nj.ais.entity.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 资源 Mapper
 * @author liupj
 */
@Repository
public interface ResourceMapper extends CURDMapper<Resource, String> {

    /**
     * 根据角色ID获取该角色下资源列表
     * @param roleId
     * @return
     */
    List<Resource> findByRoleId(String roleId);


    List<Resource> findAll();
}
